package com.zzj.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zzj.entity.Comment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zzj.model.vo.CommentVo;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 评论表 Mapper 接口
 * </p>
 *
 * @author zzj
 * @since 2023-07-17
 */
public interface CommentMapper extends BaseMapper<Comment> {
    IPage<CommentVo> findByTargetId(Page<?> page, @Param("targetID") int targetID,@Param("targetType") int targetType);

    CommentVo findById(@Param("id") int id);


}
